Analise o código abaixo:
return this.http
.post(
API_URL + '/user/login',
{ userName, password }
)
.pipe(tap(res => {
const authToken = res.headers.get('x-access-token')
console.log(`User ${userName} authenticated with token ${authToken}`);
}));
Ele compila?
Selecione uma alternativa